[INFO] cloning repository https://github.com/falila/trading-engine
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/falila/trading-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffalila%2Ftrading-engine", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffalila%2Ftrading-engine'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 4e9a046213cfdbb07bc3306abfe1f3e3174c8544
[INFO] checking falila/trading-engine against master#82310651b93a594a3fd69015e1562186a080d94c for pr-145770
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffalila%2Ftrading-engine" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/falila/trading-engine
[INFO] finished tweaking git repo https://github.com/falila/trading-engine
[INFO] tweaked toml for git repo https://github.com/falila/trading-engine written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/falila/trading-engine on toolchain 82310651b93a594a3fd69015e1562186a080d94c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/falila/trading-engine already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded borsh-derive v1.4.0
[INFO] [stderr]   Downloaded rkyv_derive v0.7.44
[INFO] [stderr]   Downloaded rust_decimal_macros v1.34.2
[INFO] [stderr]   Downloaded borsh v1.4.0
[INFO] [stderr]   Downloaded rust_decimal v1.35.0
[INFO] [stderr]   Downloaded rkyv v0.7.44
[INFO] [stderr]   Downloaded chrono v0.4.37
[INFO] [stderr]   Downloaded syn v2.0.57
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2fbe9449f5c2f4e2d1fc90ad2eb35cfef7f417cc2181383762f6360084f11603
[INFO] running `Command { std: "docker" "start" "-a" "2fbe9449f5c2f4e2d1fc90ad2eb35cfef7f417cc2181383762f6360084f11603", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2fbe9449f5c2f4e2d1fc90ad2eb35cfef7f417cc2181383762f6360084f11603", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2fbe9449f5c2f4e2d1fc90ad2eb35cfef7f417cc2181383762f6360084f11603", kill_on_drop: false }`
[INFO] [stdout] 2fbe9449f5c2f4e2d1fc90ad2eb35cfef7f417cc2181383762f6360084f11603
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c4505fb351f70a18f9f275fb7f42a916b99189681a22cc602ba59d71b52682db
[INFO] running `Command { std: "docker" "start" "-a" "c4505fb351f70a18f9f275fb7f42a916b99189681a22cc602ba59d71b52682db", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.2.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.79
[INFO] [stderr]    Compiling serde v1.0.197
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling rust_decimal v1.35.0
[INFO] [stderr]    Compiling arrayvec v0.7.4
[INFO] [stderr]     Checking iana-time-zone v0.1.60
[INFO] [stderr]    Compiling num-traits v0.2.18
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]     Checking chrono v0.4.37
[INFO] [stderr]     Checking ordered-float v4.2.0
[INFO] [stderr]    Compiling rust_decimal_macros v1.34.2
[INFO] [stderr]     Checking trading-engine v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `HashSet`
[INFO] [stdout]  --> src/corelib/amm.rs:2:33
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::{HashMap, HashSet};
[INFO] [stdout]   |                                 ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HashSet`
[INFO] [stdout]  --> src/corelib/amm.rs:2:33
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::collections::{HashMap, HashSet};
[INFO] [stdout]   |                                 ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/corelib/amm.rs:59:17
[INFO] [stdout]    |
[INFO] [stdout] 59 |             let mut wallet_pairs = self
[INFO] [stdout]    |                 ----^^^^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `current_token` is assigned to, but never used
[INFO] [stdout]    --> src/corelib/amm.rs:108:17
[INFO] [stdout]     |
[INFO] [stdout] 108 |         let mut current_token = token_in;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_current_token` instead
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `current_token` is never read
[INFO] [stdout]    --> src/corelib/amm.rs:131:13
[INFO] [stdout]     |
[INFO] [stdout] 131 |             current_token = token_b;
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_in`
[INFO] [stdout]   --> src/corelib/engine.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         token_in: TokenTicker,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_in`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_out`
[INFO] [stdout]   --> src/corelib/engine.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         token_out: TokenTicker,
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_out`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount_in`
[INFO] [stdout]   --> src/corelib/engine.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         amount_in: u64,
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_in`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_a`
[INFO] [stdout]   --> src/corelib/engine.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |         token_a: TokenTicker,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount_a`
[INFO] [stdout]   --> src/corelib/engine.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |         amount_a: u64,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_b`
[INFO] [stdout]   --> src/corelib/engine.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |         token_b: TokenTicker,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount_b`
[INFO] [stdout]   --> src/corelib/engine.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |         amount_b: u64,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `target_ratio`
[INFO] [stdout]   --> src/corelib/engine.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |         target_ratio: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_ratio`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tolerance`
[INFO] [stdout]   --> src/corelib/engine.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |         tolerance: f64,
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tolerance`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `total_lp_per_pair` is never read
[INFO] [stdout]  --> src/corelib/amm.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct AMMPool {
[INFO] [stdout]   |            ------- field in this struct
[INFO] [stdout] 7 |     liquidity_pools: HashMap<TokenTicker, u64>,
[INFO] [stdout] 8 |     total_lp_per_pair: HashMap<Pair, u64>,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `Infatrusture` found for enum `Category` in the current scope
[INFO] [stdout]    --> src/corelib/engine.rs:146:23
[INFO] [stdout]     |
[INFO] [stdout] 146 |             Category::Infatrusture,
[INFO] [stdout]     |                       ^^^^^^^^^^^^ variant or associated item not found in `Category`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/corelib/token.rs:33:1
[INFO] [stdout]     |
[INFO] [stdout] 33  | pub enum Category {
[INFO] [stdout]     | ----------------- variant or associated item `Infatrusture` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout] help: there is a variant with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 146 -             Category::Infatrusture,
[INFO] [stdout] 147 -             Market::OtherMarket(CryptoExchange::Binance),
[INFO] [stdout] 148 -         );
[INFO] [stdout] 146 +             Category::Infrastructure;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `Infatrusture` found for enum `Category` in the current scope
[INFO] [stdout]    --> src/corelib/engine.rs:218:23
[INFO] [stdout]     |
[INFO] [stdout] 218 |             Category::Infatrusture,
[INFO] [stdout]     |                       ^^^^^^^^^^^^ variant or associated item not found in `Category`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/corelib/token.rs:33:1
[INFO] [stdout]     |
[INFO] [stdout] 33  | pub enum Category {
[INFO] [stdout]     | ----------------- variant or associated item `Infatrusture` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout] help: there is a variant with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 218 -             Category::Infatrusture,
[INFO] [stdout] 219 -             Market::OtherMarket(CryptoExchange::Coinbase),
[INFO] [stdout] 220 -         );
[INFO] [stdout] 218 +             Category::Infrastructure;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `Coinbase` found for enum `CryptoExchange` in the current scope
[INFO] [stdout]    --> src/corelib/engine.rs:219:49
[INFO] [stdout]     |
[INFO] [stdout] 219 |             Market::OtherMarket(CryptoExchange::Coinbase),
[INFO] [stdout]     |                                                 ^^^^^^^^ variant or associated item not found in `CryptoExchange`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/corelib/token.rs:17:1
[INFO] [stdout]     |
[INFO] [stdout] 17  | pub enum CryptoExchange {
[INFO] [stdout]     | ----------------------- variant or associated item `Coinbase` not found for this enum
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/corelib/amm.rs:59:17
[INFO] [stdout]    |
[INFO] [stdout] 59 |             let mut wallet_pairs = self
[INFO] [stdout]    |                 ----^^^^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `current_token` is assigned to, but never used
[INFO] [stdout]    --> src/corelib/amm.rs:108:17
[INFO] [stdout]     |
[INFO] [stdout] 108 |         let mut current_token = token_in;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_current_token` instead
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `current_token` is never read
[INFO] [stdout]    --> src/corelib/amm.rs:131:13
[INFO] [stdout]     |
[INFO] [stdout] 131 |             current_token = token_b;
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_in`
[INFO] [stdout]   --> src/corelib/engine.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         token_in: TokenTicker,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_in`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_out`
[INFO] [stdout]   --> src/corelib/engine.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         token_out: TokenTicker,
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_out`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount_in`
[INFO] [stdout]   --> src/corelib/engine.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         amount_in: u64,
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_in`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_a`
[INFO] [stdout]   --> src/corelib/engine.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |         token_a: TokenTicker,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount_a`
[INFO] [stdout]   --> src/corelib/engine.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 46 |         amount_a: u64,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token_b`
[INFO] [stdout]   --> src/corelib/engine.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |         token_b: TokenTicker,
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount_b`
[INFO] [stdout]   --> src/corelib/engine.rs:48:9
[INFO] [stdout]    |
[INFO] [stdout] 48 |         amount_b: u64,
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `target_ratio`
[INFO] [stdout]   --> src/corelib/engine.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |         target_ratio: f64,
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_ratio`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tolerance`
[INFO] [stdout]   --> src/corelib/engine.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |         tolerance: f64,
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tolerance`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0599`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `trading-engine` (lib test) due to 3 previous errors; 13 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "c4505fb351f70a18f9f275fb7f42a916b99189681a22cc602ba59d71b52682db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c4505fb351f70a18f9f275fb7f42a916b99189681a22cc602ba59d71b52682db", kill_on_drop: false }`
[INFO] [stdout] c4505fb351f70a18f9f275fb7f42a916b99189681a22cc602ba59d71b52682db
